package com.fly.config;

import org.springframework.security.authentication.ReactiveAuthenticationManager;
import org.springframework.security.authentication.UserDetailsRepositoryReactiveAuthenticationManager;
import org.springframework.security.authorization.ReactiveAuthorizationManager;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.userdetails.ReactiveUserDetailsService;
import org.springframework.security.crypto.password.PasswordEncoder;
import reactor.core.publisher.Mono;

/**
 * @author Fly
 * @Description
 * @Date Created in 20:40 2018/1/27
 * @Modified by
 */
public class MyReactiveAuthenticationManager extends UserDetailsRepositoryReactiveAuthenticationManager {

    public MyReactiveAuthenticationManager(ReactiveUserDetailsService reactiveUserDetailsService) {
        super(reactiveUserDetailsService);
    }

    @Override
    public void setPasswordEncoder(PasswordEncoder passwordEncoder) {
        super.setPasswordEncoder(passwordEncoder);
    }
}
